/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2023-03-17
 * Time: 8:05
 */
class Node {
    private int val;//数据域
    private Node left;//左孩子引用
    private Node right;//右孩子引用
    private Node parent;//父亲结点的引用
}
public class TestDemo {
    public static BTNode front(BTNode root) {
        System.out.println("前:ABDEHCFG");
        System.out.println("中:DBEHAFCG");
        System.out.println("后:DHEBFGCA");
        return root;
    }

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BTNode root = binaryTree.creatTree();
        binaryTree.preOrder(root);
    }
    public static void main2(String[] args) {
        BTNode node = new BTNode('T');
        front(node);
    }
    public static void main1(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BTNode root = binaryTree.creatTree();
        System.out.println("sfasfaf");
    }
}
